/**
 * 业务类
 */

package com.xczl.demo.service;

import org.springframework.util.Assert;

import com.xczl.demo.domain.GoodsCate;

public class GoodsCateService {
	
	public void add(GoodsCate goodscate){
		Assert.notNull(goodscate);//实体是否存在
		Assert.hasText(goodscate.getName());//Dao插入数据
	}
	
	public void update(GoodsCate goodscate){
		Assert.notNull(goodscate);
		Assert.notNull(goodscate.getCateId());
		Assert.hasText(goodscate.getName());
	}

}
